home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group03a.txt
/
000047_icon-group-sender_Wed Mar 26 09:27:17 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2003-12-22
|
968b
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id h2QGQsM15477
for icon-group-addresses; Wed, 26 Mar 2003 09:26:54 -0700 (MST)
Message-Id: <200303261626.h2QGQsM15477@baskerville.CS.Arizona.EDU>
X-Sender: whm@mail.mse.com
Date: Tue, 25 Mar 2003 18:37:51 -0700
To: voice_of_reason@australia.edu (Quiet Voice)
From: "William H. Mitchell" <whm@mse.com>
Subject: Re: newbie question -- ressurected
Cc: icon-group@cs.arizona.edu
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Assuming you want to exit the loop upon end of file OR an empty line, then
I'd do this:
while line := read(data) & *line ~= 0 do
every write(lettercount[!line] +:= 1)
If end of file is a sufficient exit condition there is a more concise option:
every write(lettercount[!!data] +:= 1)
The latter takes advantage of the fact that applying ! to a file generates
the remaining lines.